'''
    集合{元素1,元素2....}
    长度:集合元素出现的个数
    无序 不重复

    列表去重：
        列表转换为集合 再将集合转换位列表
'''

set1 = {1,"123a","asdg","sd",23,22,"sada",3242,23123,2}
print(set1)

str2 = set() # 定义空集合 无元素
print(str2)

set1.add("abc")
print(set1)

set1.update({11,22,33})
print(set1)

set1.remove(22)
print(set1)

alist = [1,23,4,2,42,423,123,23,1,123,1,3]
aset = set(alist)
blist = list(aset)
print(blist)






























